-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(c/driver): Use non-objects framework components in Postgres driver #2166
refactor(c/driver): Use non-objects framework components in Postgres driver #2166
Conversation
dm.True(rdr.Next()) | ||
|
||
rec := rdr.Record() | ||
dm.Equal(int64(0), rec.NumRows()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zeroshade The change that triggered this was that the internal helper that generates streams from arrays will now canonically generate an empty stream instead of a stream with one array of length zero. I think this is slightly nicer but can revert it if you think it will cause problems!
This PR formalizes the names of documents the helpers in
framework/objects.h
andframeworks/utility.h
. It also uses them in the PostgreSQL driver and removes duplicate functionality where possible (GetObjects in the Postgres driver is a bit of a bigger project for another PR).